package com.aspose.cells.a.d;

import java.util.Iterator;

public class zen extends ze {
   private zew f;
   private boolean g;

   public zen(zew var1) {
      this.f = var1;
   }

   public void a(zo var1) throws Exception {
      this.a(var1.a());
      this.g = true;
   }

   public void b(zo var1) {
   }

   public void a(zq var1) throws Exception {
      if (this.g) {
         this.g = false;
      }

      for(int var2 = 0; var2 < var1.a().size(); ++var2) {
         com.aspose.cells.b.a.b.zo var3 = (com.aspose.cells.b.a.b.zo)var1.a().get(var2);
         this.b(var3);
      }

   }

   public void a(za var1) throws Exception {
      zt[] var2 = var1.c();
      if (var2.length > 0) {
         zt var3 = var2[0];
         if (this.g) {
            this.a(var3.a());
            this.g = false;
         } else {
            this.b(var3.a());
         }

         for(int var4 = 0; var4 < var2.length; ++var4) {
            com.aspose.cells.b.a.b.zo[] var5 = new com.aspose.cells.b.a.b.zo[]{var2[var4].b(), var2[var4].c(), var2[var4].d()};
            this.a(var5);
         }

      }
   }

   public void a(zp var1) throws Exception {
      if (var1.a().size() > 0) {
         zt var2 = (zt)((zt)var1.a().get(0));
         if (this.g) {
            this.g = false;
         } else {
            this.b(var2.a());
         }

         Iterator var3 = var1.a().iterator();

         while(var3.hasNext()) {
            zt var4 = (zt)var3.next();
            com.aspose.cells.b.a.b.zo[] var5 = new com.aspose.cells.b.a.b.zo[]{var4.b(), var4.c(), var4.d()};
            this.a(var5);
         }

      }
   }

   private void a(com.aspose.cells.b.a.b.zo var1) throws Exception {
      StringBuilder var2 = new StringBuilder(16);
      zfc.a(var1, var2);
      var2.append(" m");
      this.f.c(com.aspose.cells.b.a.zr.a(var2));
   }

   private void b(com.aspose.cells.b.a.b.zo var1) throws Exception {
      StringBuilder var2 = new StringBuilder(16);
      zfc.a(var1, var2);
      var2.append(" l");
      this.f.c(com.aspose.cells.b.a.zr.a(var2));
   }

   private void a(com.aspose.cells.b.a.b.zo[] var1) throws Exception {
      StringBuilder var2 = new StringBuilder(64);
      zfc.a(var1, var2);
      var2.append(" c");
      this.f.c(com.aspose.cells.b.a.zr.a(var2));
   }
}
